﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Tong.Check;
using Tong;
public partial class MasterPage : System.Web.UI.MasterPage
{
    TongUse TextDate = new TongUse();
    public string Abs_path = TongUse.SysPath; 
    protected void Page_Load(object sender, EventArgs e)
    {

        Check CheckUrl = new Check();
        CheckUrl.Check_Paht(Tong.TongUse.SysPath);
       // CheckUrl.CheckStr();///检察URL和FORM数据的合法性
        try
        {
            if (Request.Cookies["admin"].Value == "")
            {
                TextDate.ResonseAlert("您已经超过时间没有操作\\r\\n为安全请重新登录");
                Response.Write("<script>parent.location.href='" + TongUse.SysPath + "';</script>");
                Response.End();

            }
        }
        catch (Exception ex)
        {
            TextDate.ResonseAlert("请重新登录");
            Response.Write("<script>parent.location.href='" + TongUse.SysPath + "';</script>");
            //Response.Write(ex.Message);
            Response.End();
        }
    }
}
